home *** CD-ROM | disk | FTP | other *** search
- Public Class WebForm1
- Inherits System.Web.UI.Page
- Protected WithEvents Label1 As System.Web.UI.WebControls.Label
- Protected WithEvents txtOne As System.Web.UI.WebControls.TextBox
- Protected WithEvents txtTwo As System.Web.UI.WebControls.TextBox
- Protected WithEvents btnAdd As System.Web.UI.WebControls.Button
- Protected WithEvents txtResult As System.Web.UI.WebControls.TextBox
- Protected WithEvents Label2 As System.Web.UI.WebControls.Label
-
- #Region " Web Form Designer Generated Code "
-
- 'This call is required by the Web Form Designer.
- <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
-
- End Sub
-
- Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
- 'CODEGEN: This method call is required by the Web Form Designer
- 'Do not modify it using the code editor.
- InitializeComponent()
- End Sub
-
- #End Region
-
- Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
- 'Put user code to initialize the page here
- End Sub
-
- ' evaluates the sum when the + button is clicked
-
- Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
- Dim res As Double = CDbl(txtOne.Text) * CDbl(txtTwo.Text)
- txtResult.Text = res.ToString
- End Sub
- End Class
-